import axios from 'axios';
import { WebApi } from './WebApi';
import sessions from '@/store';

axios.defaults.timeout = 10000; // 超时时间
axios.defaults.baseURL = WebApi.backstagePath; // 默认地址
axios.defaults.withCredentials = false;
//跨域访问携带cookie
//axios.defaults.withCredentials = true;

export default axios;
